package com.world;

import base.Start;
import base.world.World;

import com.render.gui.GuiBirthday;
import com.render.gui.GuiStreak;
import com.render.gui.GuiStreakHorizontal;
import com.render.gui.GuiStreakVertical;
import com.render.gui.button.GuiButtonExit;
import com.render.gui.button.GuiButtonPlay;

public class WorldMenu extends World
{
	@Override
	public void initWorld()
	{
		GuiStreak[] streaks = new GuiStreak[32];
		for (int i = 31; i >= 0; i--)
		{
			if (rand.nextBoolean())
			{
				streaks[i] = (GuiStreak) Start.renderEngine.addGui(new GuiStreakHorizontal());
			}
			else
			{
				streaks[i] = (GuiStreak) Start.renderEngine.addGui(new GuiStreakVertical());
			}
		}

		Start.renderEngine.addGui(new GuiBirthday(streaks));

		Start.renderEngine.addGui(new GuiButtonPlay());
		Start.renderEngine.addGui(new GuiButtonExit());
	}
}
